//
// Created by yyancy on 2020/4/12.
//

#ifndef LATTER_LETTER_HPP
#define LATTER_LETTER_HPP


#define ASK(p) do{ \
    p = (ADDR*)malloc(sizeof(ADDR)); \
    if (p == NULL) {printf("memory fail!\n");exit(-1);} \
}while(0);

#define LEN sizeof(ADDR)
extern "C" int count;
typedef struct address {
    char name[8];
    char tel[20];
    struct address *next;
} ADDR;


extern "C" ADDR *input(ADDR *);

extern "C" void display(ADDR *);

extern "C" int menu_select(void);

extern "C" void handle_menu(ADDR *);

extern "C" ADDR *del(ADDR *);


#endif //LATTER_LETTER_HPP
